package com.mrd.shiptask_shipowner.constants;

/**
 * @author winaya
 */
public class HttpConstant {
	// 保存用户信息的xml文件名
	public static final String SAVE_USER = "saveUser";
	// 数据库名称
	public static final String DBNAME = "SMAS.db";

	public static final int PROGRESS_START = 1;
	public static final int PROGRESS_end = 2;

	public static final String LOGIN_SUCCESS = "LOGIN_SUCCESS";
	public static final String LOGIN_FAIL = "LOGIN_FAIL";

	// cookies
	public static final String USERNAMECOOKIE = "cookieName";
	public static final String USERPASSWORDCOOKIE = "cookiePassword";
	public static final String USERPASSWORDREMEMBERCOOKIE = "cookieRemember";
	public static final String ISFIRSTSTART = "isfirstStart";

	/**
	 * 请求操作类型标识
	 */
	public static final String TAG_ACT_FLAG = "act_flag";
	/**
	 * 请求操作:登录
	 */
	public static final String ACT_FLAG_LOGIN = "login";

	/**
	 * 参数类型标识
	 */
	public static final String TAG_PARAM = "params";
	/**
	 * 账号参数
	 */
	public static final String PARAM_ACCOUNT = "account";
	/**
	 * 密码参数
	 */
	public static final String PARAM_PASSWORD = "password";
	/**
	 * 设备唯一码
	 */
	public static final String PARAM_DEVICE_ID = "deviceuuid";

	/**
	 * 船舶ID参数标识
	 */
	public static final String PARAM_SHIP_ID = "shipid";
	/**
	 * 船舶名称参数标识
	 */
	public static final String PARAM_SHIP_NAME = "shipname";
	/**
	 * 船员ID参数标识
	 */
	public static final String PARAM_SAILOR_ID = "sailorid";
	/**
	 * 船舶证件参数标识
	 */
	public static final String PARAM_SEQ_NO = "seqNo";
	/**
	 * 账号是否激活
	 */
	public static final String ACCOUNT_ISACTIVE = "isactive";
	/**
	 * 账号已激活
	 */
	public static final String ACCOUNT_ACTIVE = "active";
	/**
	 * 账号未激活
	 */
	public static final String ACCOUNT_DISACTIVE = "disactive";
	/**
	 * 账号验证是否通过
	 */
	public static final String MATCH_ISPASS = "ispass";
	/**
	 * 通过验证
	 */
	public static final String MATCH_PASS = "pass";
	/**
	 * 密码错误，验证失败
	 */
	public static final String MATCH_NOTPASS = "notpass";
	/**
	 * 网络异常
	 */
	public static final String NETWORK_UNAVAILABLE = "unavailable";
	/**
	 * 连接超时
	 */
	public static final String TIME_OUT_EXCEPTION = "链接超时";
	/**
	 * 帐号已绑定其他设备，登录验证失败
	 */
	public static final String DEVICE_ALREADY_LOGIN = "DAL";
	/**
	 * 数据获取成功
	 */
	public static final String DATA_INIT_SUCCESS = "data_init_success";
	/**
	 * 数据获取失败
	 */
	public static final String DATA_INIT_FAIL = "data_init_fail";

	/**
	 * 页面ID参数标识
	 */
	public static final String PARAM_PAGEID = "pageid";

	/**
	 * 标识ID参数标识
	 */
	public static final String PARAM_IDENTIFYID = "identifyid";

	public static final String TASK_INIT_FAIL = "task_init_fail";
	/**
	 * 暂无数据更新
	 */
	public static final String NO_DATA_UPDATE = "no_data_update";
	/**
	 * 提交成功
	 */
	public static final int SUBMIT_SUCCESS = 1;// "submit_success";
	/**
	 * 提交失败
	 */
	public static final int SUBMIT_FAIL = 0; // "submit_fail";
	/**
	 * app文件大小
	 */
	public static final int APPLENGTH = 654;
	/**
	 * 当前的下载进度
	 */
	public static final int CURRENTNUMBER = 789;
	/**
	 * 下载成功
	 */
	public static final int DOWNLOADSUCCESS = 122;
	/**
	 * 下载失败
	 */
	public static final int DOWNLOADFAIL = 121;
	/**
	 * 安装成功
	 */
	public static final int INSTALLSUCCESS = 124;
	/**
	 * 安装失败
	 */
	public static final int INSTALLFAIL = 125;
	/**
	 * 获取最新app地址成功
	 */
	public static final int GETURI_SUCCESS = 126;
	/**
	 * 获取最新app地址失败
	 */
	public static final int GETURI_FAIL = 127;

	public static final int GET_ELETRON_MESSAGE_SUCCESS = 10;
	public static final String KEY_ELETRON_MESSAGE = "KEY_ELETRON_MESSAGE";
	public static final int GET_MAKE_TO_ORDER_SUCCESS = 11;
	public static final String KEY_MAKE_TO_ORDER = "KEY_MAKE_TO_ORDER";
	public static final int GET_ORDERS_MESSAGE_SUCCESS = 12;
	public static final String KEY_ORDERS_MESSAGE = "KEY_ORDERS_MESSAGE";
	public static final String ACTION_CONFIRM = "ACTION_CONFIRM";
	public static final String ACTION_REVOKE = "ACTION_REVOKE";
	public static final String ACTION_UNCONFIRM = "ACTION_UNCONFIRM";
	public static final int UNKNOW_ERROR = 6;
	public static final int RESULT_NULL = 5;
	// 有新版本
	public final static String HAS_NEW_VERSION = "has_new_version";
	// 无新版本
	public final static String HAS_NO_VERSION = "has_no_version";
	/**
	 * 操作结果标识符
	 */
	public static final String OPA_TAG = "OTG";
	/**
	 * 装货港跳转标识符，签单模块
	 */
	public static final String LOAD = "load";
	/**
	 * 卸货港跳转标识符，签单模块
	 */
	public static final String DISCHARGE = "discharge";
}
